package com.css.zfzx.fwsjcj.modules.app.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

@Entity
@Table(name = "fw_app_version", schema = "fwsjcj", catalog = "")
public class FwAppVersionEntity {
    private String appId;
    private String appUrl;
    private String appUpdateContent;
    private String appVersion;
    private Date createTime;
    private String delFlag;
    private String appType;

    @Id
    @Column(name = "APP_ID")
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @Basic
    @Column(name = "APP_URL")
    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    @Basic
    @Column(name = "APP_UPDATE_CONTENT")
    public String getAppUpdateContent() {
        return appUpdateContent;
    }

    public void setAppUpdateContent(String appUpdateContent) {
        this.appUpdateContent = appUpdateContent;
    }

    @Basic
    @Column(name = "APP_VERSION")
    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "DEL_FLAG")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Basic
    @Column(name = "APP_TYPE")
    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FwAppVersionEntity that = (FwAppVersionEntity) o;
        return Objects.equals(appId, that.appId) &&
                Objects.equals(appUrl, that.appUrl) &&
                Objects.equals(appUpdateContent, that.appUpdateContent) &&
                Objects.equals(appVersion, that.appVersion) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(delFlag, that.delFlag) &&
                Objects.equals(appType, that.appType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(appId, appUrl, appUpdateContent, appVersion, createTime, delFlag, appType);
    }
}
